package com.hl.card.modular.packBack.service.impl;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hl.card.common.annotion.DataSource;
import com.hl.card.common.constant.DSEnum;
import com.hl.card.common.persistence.dao.GoodsMapper;
import com.hl.card.common.persistence.dao.StatisticsManagerMapper;
import com.hl.card.common.persistence.model.Goods;
import com.hl.card.modular.packBack.service.StatisticsManagerService;

@Service
public class StatisticsManagerServiceImpl implements StatisticsManagerService{
    @Autowired
    private StatisticsManagerMapper statisticsManagerMapper;
    @Autowired
    private GoodsMapper goodsMapper;
    
	@Override
	public List<Map<String, Object>> searchStatistics(Map<String,Object> map) {
		List<Map<String,Object>> list=statisticsManagerMapper.searchBiBeanCount(map);
		
		return list;
	}
	
	@DataSource(name=DSEnum.DATA_SOURCE_BIZ)
	public List<Map<String, Object>>   searchOperateCount(Map<String,Object> map)
	{
		List<Map<String,Object>> list=statisticsManagerMapper.searchOperateCount(map);
		return list;
	}

	@Override
	public List<Map<String, Object>> searchDisMemberCount(
			Map<String, Object> map) {
		List<Map<String,Object>> list=statisticsManagerMapper.searchDisMemberCount(map);
		return list;
	}
	
	
	public List<Goods> selectGoodsByCodePrefix()
	{
		return goodsMapper.selectGoodsByCodePrefix();
	}

	@DataSource(name=DSEnum.DATA_SOURCE_BIZ)
	public List<Map<String, Object>> searchOperateInfo(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return statisticsManagerMapper.searchOperateInfo(map);
	}

	@DataSource(name=DSEnum.DATA_SOURCE_BIZ)
	public List<Map<String, Object>> queryImageCount() {
		// TODO Auto-generated method stub
		return statisticsManagerMapper.queryImageCount();
	}
	
	public List<Map<String, Object>> queryCommunityUserView(Map<String,Object> map) {
		// TODO Auto-generated method stub
		return statisticsManagerMapper.queryCommunityUserView(map);
	}
	
}
